import React, { Component } from 'react'
import { connect } from 'react-redux'
 class Over extends Component {
    constructor() {
        super()
        this.state = {
            isOver: false,
            overImg: require('./static/over.png'),
            overing: false
        }
        
    }
    componentDidMount() {
    }
    com
    render() {
        return (
            <div className={this.props.gameState === 'over' ? 'over show': 'over'}>
                <img src={this.state.overImg} alt="游戏结束" className="title" />
                <p>F5重新开始</p>
            </div>
        )
    }
}
const mapState = (state) => {
    return {
        gameState: state.game
    }
}
export default connect(mapState,null)(Over)